﻿using Lis.DALFactory;
using Lis.DTO;
using Lis.IDAL;
using Lis.IRepository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lis.Repository
{
    public class AppointmentRepository : GenericRepository<AppointmentDto>, IAppointmentRepository
    {
        public override void GetDal()
        {
            CurrentDal = AbstractDalFactory.GetAppointmentDal();
        }

        public IEnumerable<AppointmentDto> GetEntitiesByUserName(string UserName)
        {
            return ((IAppointmentDal)CurrentDal).GetEntitiesByUserName(UserName);
        }
    }
}
